﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="column2">
        <div>
            <h3>
		    <ul class="css-tabs">
			    <li>
                    <a class="current" href="#first" title="Tin nổi bật">
                        <span style="float:left; color: #003399">Danh sách tin tức</span>
                        <img src="../../../Content/Images/Home/new.gif" border="0" style="float: left; margin-left: 3px; padding-top: 7px; padding-left: 3px;"/>
                    </a>
                </li>
		    </ul>
			
		    </h3>
            <div class="css-panes" id="section_content">	
                <div class="css-pane" id="first" style="display: block;">
                    <!-- Show info item -->
                    <% for (int i = 0; i < Model.TinTucModel.GetModel.LstObjModel.Count; i++)
                        {
                            if (i == 0)
                            {%>
                                <div class="fullwidth">
                                    <% Html.RenderPartial("Templates/TH_TinTucItem", Model.TinTucModel.GetModel.LstObjModel[i]); %>  
                                </div>
                        <% }
                            else
                            { %>
                                <div class="fullwidth cms_separator">
                                    <% Html.RenderPartial("Templates/TH_TinTucItem", Model.TinTucModel.GetModel.LstObjModel[i]); %> 
                                </div>
                        <% } %>
                    <% } %>
                    <% GridPagerProperties properties = new GridPagerProperties()
                        {
                            //paging
                            PageSize = WebConfiguration.ProductsPerPage,
                            RecordCount = Model.TinTucModel.GetModel.TotalItem,
                            CurrentPageIndex = Model.TinTucModel.GetModel.CurrentPage,
                            TransferValue = Model.TinTucModel.ReferKeys.IDLoaiTinTuc,
                            TypeOfParam = EnumTypeOfParam.TINTUC,
                            //action link
                            Controller = "Home",
                            ActionName = "SelectTinTucByLoaiTinTuc"
                        }; 
                    %>
                    <%= Html.GridPagerWithoutAjax(properties)%>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
